<div class="empresas form">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Adicionar Empresa'); ?></h1>
			</div>
		</div>
	</div>



	<div class="row">
		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Ações</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">

								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Listar Empresas'), array('action' => 'index'), array('escape' => false)); ?></li>
									
							</ul>
						</div>
					</div>
				</div>			
		</div><!-- end col md 3 -->
		<div class="col-md-9">
			<?php echo $this->Form->create('Empresa'); ?>
			<div class="panel panel-default">
				<h3 class="col-md-12">Empresa</h3>
				<div class="panel-body">
					<div class="row">
						<div class="form-group col-md-12">
							<?php echo $this->Form->input('Empresa.nome', array('class' => 'form-control', 'placeholder' => 'Nome da Empresa'));?>
						</div>
					</div>
					<div class="row">
						<div class="form-group col-md-4">
							<?php echo $this->Form->input('Empresa.cnpj', array('class' => 'form-control', 'placeholder' => '00.000.000/0000-00'));?>
						</div>
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Empresa.telefone', array('class' => 'form-control', 'placeholder' => '00 0000-0000'));?>
						</div>
						<div class="form-group col-md-5">
							<?php echo $this->Form->input('Empresa.email', array('class' => 'form-control', 'placeholder' => 'Email'));?>
						</div>
						
					</div>
					<div class="row">
						<div class="form-group col-md-7">
							<?php echo $this->Form->input('Empresa.representante', array('class' => 'form-control', 'placeholder' => 'Representante da empresa'));?>
						</div>
						<div class="form-group col-md-5">
							<?php echo $this->Form->input('Empresa.site', array('class' => 'form-control', 'placeholder' => 'Site'));?>
						</div>
						
					</div>
					<div class="row">
						<div class="form-group col-md-12">
							<?php echo $this->Form->input('Empresa.endereco_id', array('type' => 'hidden', 'class' => 'form-control', 'placeholder' => 'Enderecos Id'));?>
						</div>
					</div>
				</div>
			</div>
			<div class="panel panel-default">
				<h3 class="col-md-12">Endereço</h3>
				<div class="panel-body">
					<div class="row">
						<div class="form-group col-md-10">
							<?php echo $this->Form->input('Endereco.rua', array('class' => 'form-control', 'placeholder' => 'Ex: Rua Gonçalves Faustino'));?>
						</div>
						<div class="form-group col-md-2">
							<?php echo $this->Form->input('Endereco.numero', array('class' => 'form-control', 'placeholder' => 'número'));?>
						</div>
					</div>
					<div class="row">
						<div class="form-group col-md-8">
							<?php echo $this->Form->input('Endereco.bairro', array('class' => 'form-control', 'placeholder' => 'bairro'));?>
						</div>
						<div class="form-group col-md-4">
							<?php echo $this->Form->input('Endereco.cep', array('class' => 'form-control', 'placeholder' => 'cep ex: 79370000'));?>
						</div>
						
					</div>
					<div class="row">
						<div class="form-group col-md-6">
							<?php echo $this->Form->input('Endereco.complemento', array('class' => 'form-control', 'placeholder' => 'complemento'));?>
						</div>
						<div class="form-group col-md-6">
							<?php echo $this->Form->input('Endereco.cidade_id', array('class' => 'form-control'));?>
						</div>
					</div>
				</div>
			</div>
				<div class="form-group">
					<?php echo $this->Form->submit(__('Submit'), array('class' => 'btn btn-default')); ?>
				</div>

			<?php echo $this->Form->end() ?>

		</div><!-- end col md 12 -->
	</div><!-- end row -->
</div>
